Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 2 - Shape Objects / Shape Objects Reference
Functions / Manipulating Shape Object Properties


GXSetShapeAttributes

You can use the GXSetShapeAttributes function to set or clear the attributes for a particular shape object.

void GXSetShapeAttributes(gxShape target, gxShapeAttribute 
attributes);
target
A reference to the shape object to change the attributes of.
attributes
The new shape attributes to be assigned.
ERRORS, WARNINGS, AND NOTICES
Errors 
out_of_memory 
shape_is_nil 
parameter_out_of_range(debugging version)
inconsistent_parameters(debugging version)
shape_access_not_allowed(debugging version)
Warnings 
picture_expected 
cannot_set_unique_items_attribute_when_picture_contains_items
SEE ALSO
Shape attributes are described in the section "Shape Attributes" beginning on page 2-16, and in the section "Getting and Setting a Shape Object's Type, Fill, and Attributes" beginning on page 2-28.

To examine the attributes of a shape object, use the GXGetShapeAttributes function, described in the previous section.

For an example of the use of this function, see page 2-29.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996